<template>
	<view class="">
		<view class="topBg">
			<view class="back" @click="back"><uni-icons type="back" size="30"></uni-icons></view>
		</view>

		<view class="top">
			<view class="who">
				<view class="url">
					<image src="https://golfdate.oss-cn-shenzhen.aliyuncs.com/img/1.png" mode="aspectFill"></image>
				</view>
				<view class="name">
					zcy的红包
				</view>
			</view>
			<view class="money">
				<text>0.02</text>元
			</view>
			<view class="toqian" @click="nav_to('/pages/user/balance')">
				已存入红包收入 可提现>
			</view>
		</view>
		<view class="fenge"></view>
		<view class="allcount">
			<text>共多少个红包</text>
		</view>
		<view class="list">
			<view class="list-user" v-for="(item,index) in 6" :key="index">
				<view class="image">
					<view class="img">
						<image src="https://golfdate.oss-cn-shenzhen.aliyuncs.com/img/1.png" mode="aspectFill"></image>
					</view>
					<view class="name">
						张重阳
					</view>
				</view>
				<view class="red-money">
					0.02元
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		tabTop: 0,
		components: {

		},
		data() {
			return {

			}
		},

		methods: {
			back() {
				uni.navigateBack();
			}

		},

		async onLoad(e) {

		},

		onShow() {

		}
	}
</script>

<style lang="scss">
	body,
	html {
		width: 100%;
		height: 100%;
		background-color: #fff;
	}

	.topBg {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 2;
		width: 100%;
		height: 180rpx;
		background-color: #f65646;
		border-bottom-left-radius: 50%;
		border-bottom-right-radius: 50%;

		.back {
			position: fixed;
			left: 30rpx;
			top: 50rpx;
			z-index: 3;
			display: inline-block;
		}
	}

	.top {
		width: 100%;
		height: 600rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		background-color: #ffffff;

		.who {
			height: 60rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			margin-top: 30rpx;

			.url {
				width: 60rpx;
				height: 60rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.name {
				margin: 0 10rpx 0 20rpx;
				color: #000;
			}
		}

		.money {
			font-size: 14px;
			margin-top: 30rpx;

			text {
				font-size: 40px;
				font-weight: 900;
				color: #ceab71;
			}
		}

		.toqian {
			display: inline-block;
			font-size: 14px;
			color: #ceab71;
			margin-top: 20rpx;
		}
	}

	.fenge {
		height: 20rpx;
		background-color: #eeeeee;
	}

	.allcount {
		width: 100%;
		height: 60rpx;
		box-sizing: border-box;
		padding-left: 30rpx;
		background-color: #fff;
		font-size: 14px;

		text {
			line-height: 60rpx;
			color: #000;
		}
	}

	.list {
		background-color: #ffffff;
		box-sizing: border-box;
		width: 100%;
		padding: 20rpx 40rpx 40rpx 40rpx;

		.list-user {
			width: 100%;
			height: 100rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			border-top: 1px solid #eeeeee;

			.image {
				width: 400rpx;
				height: 60rpx;
				display: flex;
				justify-content: flex-start;
				align-items: flex-start;

				.img {
					width: 70rpx;
					height: 70rpx;

					image {
						width: 100%;
						height: 100%;
					}
				}

				.name {
					font-size: 14px;
					color: #000;
					margin-left: 20rpx;
				}
			}

			.red-money {
				color: #000;
			}
		}

		.list-user:nth-last-child(1) {
			border-bottom: 1px solid #eeeeee;
		}
	}
</style>